package 第二章练习;
import java.io.*;
public class lianxi81 {
    public static void main(String[] args)  throws Exception {
        File file = new File("D:" + File.separator + "Demo01" + File.separator + "lianxi77.java");
        if(!file.getParentFile().exists()){
            file.getParentFile().mkdirs();
        }
        try (Writer out = new FileWriter(file)) {
        out .write("沐言科技：www.yootk.com\n");
        out.append("李兴华高薪就业编程训练营：edu.yootk.com");
        } catch (Exception e) {}
    }
}
